package com.ytjj.qmyx.mall.model;

import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 拼团成员表
 */
public class GroupBuyUserRel implements Serializable {
    /**
     * 拼团成员表主键id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 团id
     *
     * @mbg.generated
     */
    private Integer groupId;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 成员角色 1-团长 2-成员
     *
     * @mbg.generated
     */
    private Byte groupRole;

    /**
     * 是否虚拟用户 1-是 0-否
     *
     * @mbg.generated
     */
    private Byte virtualUser;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 是否中奖 默认0 1-是 0-否
     */
    private Integer winFlag;

    /**
     * 订单支付状态 1-已支付 0-未支付
     */
    private Integer status;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 是否已领红包 1-已领 0-未领
     */
    private Integer redFlag;

    /**
     * 用户名称
     */
    private String userName;

    /**
     * 用户头像
     */
    private String headImg;

    /**
     * 退款标志 1-已退款 0-未退款
     */
    private Integer refundFlag;

    /**
     * 已领红包金额
     */
    private BigDecimal redPackBalance;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Byte getGroupRole() {
        return groupRole;
    }

    public void setGroupRole(Byte groupRole) {
        this.groupRole = groupRole;
    }

    public Byte getVirtualUser() {
        return virtualUser;
    }

    public void setVirtualUser(Byte virtualUser) {
        this.virtualUser = virtualUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getWinFlag() {
        return winFlag;
    }

    public void setWinFlag(Integer winFlag) {
        this.winFlag = winFlag;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getRedFlag() {
        return redFlag;
    }

    public void setRedFlag(Integer redFlag) {
        this.redFlag = redFlag;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Integer getRefundFlag() {
        return refundFlag;
    }

    public void setRefundFlag(Integer refundFlag) {
        this.refundFlag = refundFlag;
    }

    public BigDecimal getRedPackBalance() {
        return redPackBalance;
    }

    public void setRedPackBalance(BigDecimal redPackBalance) {
        this.redPackBalance = redPackBalance;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", groupId=").append(groupId);
        sb.append(", userId=").append(userId);
        sb.append(", groupRole=").append(groupRole);
        sb.append(", virtualUser=").append(virtualUser);
        sb.append(", createTime=").append(createTime);
        sb.append(", winFlag=").append(winFlag);
        sb.append(", status=").append(status);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", redFlag=").append(redFlag);
        sb.append(", userName=").append(userName);
        sb.append(", headImg=").append(headImg);
        sb.append(", refundFlag=").append(refundFlag);
        sb.append(", redPackBalance=").append(redPackBalance);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}